package com.frank.subject.domain.convert;

import com.frank.subject.domain.entity.SubjectCategoryBo;
import com.frank.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目分类转换BO
 * @author Climb Zou
 * @version v0.0.1
 * @date 2024/1/19 17:22
 */
@Mapper
public interface SubjectCategoryBoConverter {

    SubjectCategoryBoConverter INSTANCE = Mappers.getMapper(SubjectCategoryBoConverter.class);

    SubjectCategory convertBoToCategory(SubjectCategoryBo subjectCategoryBO);


    List<SubjectCategoryBo> convertCategoryListToBOList(List<SubjectCategory> subjectCategories);
}
